<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

        var a =1;
        function f1() {
            var b = 2;
            {
                let c = 3; // var 2种，   let block块
            }
            // document.write();
            console.info(a)
            console.info(b)
            console.info(c)
        }

        f1(); // 1   2    3


    </script>
</head>
<body>
    
</body>
</html>